<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="__PUBLIC__/echarts/echarts.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all">
</head>
<style>

</style>
<body>
<div class="layui-fluid main">

    <fieldset class="layui-elem-field site-demo-button" style="margin-top: 30px;border:0">
        <form id="hotel" class="layui-form" action="/admin/poi/hotellist" method="post">
            <div class="layui-form-item" style="float: left;">
                <div class="layui-input-inline">
                    <input type="text" name="name" value="{if isset($wherelist['name'])}{$wherelist['name']}{/if}" lay-verify="title" autocomplete="off" placeholder="请输入酒店名称" class="layui-input layui-btn-sm">
                </div>
                <div class="layui-input-inline">
                    <div class="layui-inline">
                        <select name="area" lay-filter="area" lay-search="">
                            <option value="">地区</option>
                            <option value="Banff" {if isset($wherelist['area']) AND $wherelist['area']=='Banff' }selected{/if}>Banff</option>
                            <option value="Canmore" {if isset($wherelist['area']) AND $wherelist['area']=='Canmore' }selected{/if}>Canmore</option>
                            <option value="Lake Louise" {if isset($wherelist['area']) AND $wherelist['area']=='Lake Louise' }selected{/if}>Lake Louise</option>
                            <option value="Calgary" {if isset($wherelist['area']) AND $wherelist['area']=='Calgary' }selected{/if}>Calgary</option>
                            <option value="Edmonton" {if isset($wherelist['area']) AND $wherelist['area']=='Edmonton' }selected{/if}>Edmonton</option>
                            <option value="Jasper" {if isset($wherelist['area']) AND $wherelist['area']=='Jasper' }selected{/if}>Jasper</option>
                        </select>
                    </div>
                </div>
                <div class="layui-input-inline">
                    <div class="layui-inline">
                        <select name="rank" lay-filter="rank" lay-search="">
                            <option value="">星级</option>
                            <option value="0" {if isset($wherelist['rank']) AND $wherelist['rank']=='0' }selected{/if}>无星级</option>
                            <option value="1" {if isset($wherelist['rank']) AND $wherelist['rank']=='1' }selected{/if}>一星级</option>
                            <option value="2" {if isset($wherelist['rank']) AND $wherelist['rank']=='2' }selected{/if}>二星级</option>
                            <option value="3" {if isset($wherelist['rank']) AND $wherelist['rank']=='3' }selected{/if}>三星级</option>
                            <option value="4" {if isset($wherelist['rank']) AND $wherelist['rank']=='4' }selected{/if}>四星级</option>
                            <option value="5" {if isset($wherelist['rank']) AND $wherelist['rank']=='5' }selected{/if}>五星级</option>
                        </select>
                    </div>
                </div>
                <button class="layui-btn layui-btn-danger layui-btn-sm" lay-submit="" lay-filter="hotel">搜索</button>
            </div>
        </form>
    </fieldset>

    <table class="layui-table" lay-even="" lay-skin="line">
        <colgroup>
            <col width="7%">
            <col width="12%">
            <col width="7%">
            <col width="7%">
            <col width="10%">
            <col width="10%">
            <col width="10%">
            <col width="7%">
            <col width="15%">
            <col width="25%">
        </colgroup>
        <thead>
        <tr>
            <th>ID</th>
            <th>英文名</th>
            <th>地区城市</th>
            <th>星级</th>
            <th>地址</th>
            <th>早餐</th>
            <th>服务费</th>
            <th>加人费</th>
            <th>备注</th>
            <th>价格详情（含税价）</th>
        </tr>
        </thead>
        <tbody>
        {volist name="hotelData" id="vo"}
        <tr>
            <td>{$vo.pid}</td>
            <td><strong>{$vo.eng_name}</strong></td>
            <td>{$vo.area}</td>
            <td>{$vo.rank}</td>
            <td>{$vo.address}</td>
            <td>{$vo.service_fee}</td>
            <td>{$vo.breakfast_fee}</td>
            <td>{$vo.charging_fee}</td>
            <td>{$vo.remarks}</td>
            <td>
                {if !empty($vo.price_json) && $vo.price_json!==''}
                <table class="layui-table" lay-even="" lay-skin="row" lay-size="sm">
                    <colgroup>
                        <col width="50">
                        <col width="30">
                    </colgroup>
                    <tbody>
                    {volist name="$vo.price_json" id="vo1"}
                    <tr>
                        <td>{$vo1.day}</td>
                        <td>
                            {if $vo1.day!=='' && $vo1.day!=='现询'}
                            C$ {$vo1.price}
                            {/if}
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
                {/if}
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>



<script src="__PUBLIC__/layui/layui.js" charset="utf-8"></script>
<script src="__PUBLIC__/jquery/jquery.min.js"></script>
    <script>
        layui.use(['layer', 'form'], function() {
            var layer = layui.layer,
                $ = layui.jquery,
                form = layui.form;
        });
    </script>


</body>
</html>


